package com.itheima.myvolatile;

/**
 * @Author 王加鑫
 * @Date 2021/5/23 11:48
 * @Version 1.0
 */
public class MyVolatile {
    public static void main(String[] args) {
        Girl girl = new Girl();
        Thread thread = new Thread(girl);
        Thread thread1 = new Boy();
        thread.start();
        thread1.start();
    }
}
